home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / IE7proSetup_2.3.exe / userscripts / DownloadVideo.ieuser.js < prev    next >
Text File  |  2007-11-20  |  26KB  |  359 lines

  1. // ==UserScript==
  2. // @name          Download Video
  3. // @namespace     http://1024k.de/bookmarklets/video-bookmarklets.html
  4. // @description      Save video clips from YouTube, Google Video, Myspace, Metacafe, Break.com, Putfile, Dailymotion and Sevenload.
  5. // @include       http://*youtube.com/*
  6. // @include       http://*video.google.*/*
  7. // @include       http://*myspace.com/*
  8. // @include       http://*metacafe.com/*
  9. // @include       http://*break.com/*
  10. // @include       http://*putfile.com/*
  11. // @include       http://*dailymotion.com/*
  12. // @include       http://*sevenload.de/*
  13. // @include       http://*myvideo.de/*
  14. // @include       http://*clipfish.de/*
  15. // ==/UserScript==
  16.  
  17. //
  18. // IE7pro Team
  19. // Ported from http://userscripts.org/scripts/show/4037
  20. //
  21. (function(){ 
  22.  
  23.  
  24.  var logotopimgsrc='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABOCAMAAACNDREzAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAADAUExURfn4966ml9Pe0cDSvYuHdbrMtk9GMXVlQenp47mkeMTVwol4Ui0nF8azjc/bzODk3JaRghYRCKqVaXFpV9rX0cnFwJeEW7KdcWBZSauSYcnZx3x1ZLKaaoBvTL+4r6ObjGZZOayYbUQ6KDgwIKGKW2liU4J6a9bh1KWRZ8bXxNHNyaeTaKmYdW9gO626pJmjjbSxqFlQPqGOY2tfRriuph4ZEMrUwfLx7459WKSvmrPBq7uyqXZuXtfi1QYGBP///64HO4MAAA0dSURBVHjaYrCnCQAIIAYYrSbPQEVjAQIIZpaanamAOfWMBQggmLFsdnYCVHQuQADBjJKTUJajYiAABBDcheaWbCLUMxYggBAeN1eiYigABBCSSWqG1HMuQAAhGSvCQz3nA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AoiUQzmPAJol9w6KLPML4h0rUSGUiYpzkyAEAGySg5JJMNumkkhuEOIlKmQDoiTwvkWKKioXA4qUbU9ijgB0niZgHBAj9wWUYbLb5RY5uxilnE3BS0cGddzqBZwdN5OmBn3/yGeiegwIqRZ1T+JnnoozyqSieegoa6JtrWvHopJNCqmifkXbqBaJSXCrqnoIS2qekpFYBahSjnprpo4DGKqmqlVbR6quDYnqpq5/WaqephfLKqLCoAnuor3MmC8Y99BVpwbPQRivttNRWa+1HtdBWEE4xFXQAQGEVhCvuuOSWa+656KYrLhcdVFCGEfTFK++89NZr77340mtEdltM4O+/AAcs8MAEF2ywwEiwoPDCDDf8QQgAOw==';
  27.  
  28.  var home='http://1024k.de/bookmarklets/video-bookmarklets.html';
  29.  var hometitle='title="(author\'s homepage)"';
  30.  var loc=window.location.href;
  31.  
  32.  function in2html(txt)
  33.  {
  34.  if (!txt) return '';
  35.  var txthtml = txt.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
  36.  return(txthtml);
  37.  }
  38.  
  39.  function rev(str)
  40.  {
  41.  if (!str) return '';
  42.  var revstr='';
  43.  for (i=str.length-1;i>=0;i--){revstr+=str.charAt(i)}
  44.  return revstr;
  45.  }
  46.  
  47.  var found=false;
  48.  var backlink=in2html(loc);
  49.  var host=window.location.hostname;
  50.  var mediahost=false;
  51.  var embmedia=new Array();
  52.  var source;var filetype='';
  53.  var fileURL=new Array();
  54.  var urlstra='<div class="filelink"><a href="';
  55.  var urlstrb='" title="Download video from ';
  56.  var urlstrc='">Download link</a> ';
  57.  var urlstrd='</div>Right-click -> "Save Target As"';
  58.  var urlstart;var urlend;var vid;
  59.  var scriptmedia=new Array();
  60.  
  61.  function insertnotice() {
  62.  
  63.      //document.getElementsByTagName('html')[0].setAttribute('style','margin-top:22px;');
  64.      document.getElementsByTagName('html')[0].style.cssText = 'margin-top:22px;';
  65.  
  66.      var gmnotice = document.createElement('div');
  67.      gmnotice.setAttribute('id','gmnotice');
  68.      //gmnotice.setAttribute('style', 'cursor:pointer;position:fixed;top:0;right:0;width:100%;height:21px;padding:0 3px;background-color:#FFFA2F;border-bottom:1px solid #8C8C8C');
  69.      gmnotice.style.cssText = 'cursor:pointer;position:fixed;top:0;right:0;width:100%;height:21px;padding:0 3px;background-color:#FFFA2F;border-bottom:1px solid #8C8C8C';
  70.  
  71.      var p = document.createElement('p');
  72.      //p.setAttribute('style','margin:0;padding:3px;font-family:arial,helvetica,sans-serif;color:#666666;font-size:12px;text-align:center;');
  73.      p.style.cssText = 'margin:0;padding:3px;font-family:arial,helvetica,sans-serif;color:#666666;font-size:12px;text-align:center;';
  74.      p.setAttribute('id','gmnotice-p');
  75.  
  76.      var text = document.createTextNode('Get download link(s) to video(s)');
  77.  
  78.      document.getElementsByTagName('body')[0].appendChild(gmnotice);
  79.      gmnotice.appendChild(p);
  80.      p.appendChild(text);
  81.  
  82.      //document.getElementById('gmnotice').attachEvent('onclick',outputxhtml);
  83.      p.attachEvent('onclick',outputxhtml);
  84.  
  85.  }
  86.  
  87.  function outputxhtml() {
  88.  
  89.      if (fileURL.length!=0) {
  90.  
  91.          var logotop='<a href="'+backlink+'" title="(back to '+mediahost+')"><img alt="" class="logoimgtop" src="'+logotopimgsrc+'" /></a>';
  92.          var logobottom='<a href="'+home+'" '+hometitle+'><img alt="" class="logoimgbottom" src="'+logobottomimgsrc+'" /></a>';
  93.  
  94.          var link=fileURL.join('</li><li>');
  95.  
  96.         document.write('<?xml version="1.0" encoding="ISO-8859-15"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"></meta><title>Video Download, '+host+'</title><style type="text/css"><!--body { margin:0;padding:0 11px;background-color:#818181;font:normal 12px arial,helvetica,sans-serif; }.pagebox { background-color:#FFFFFF;position:relative;min-width:458px;max-width:505px;margin:34px auto;padding:34px;border:1px solid #696969;-moz-border-radius:10px; }h1, h2 { border-bottom:1px solid #C8C8C8; }h1 { margin:0 15px 10px 75px;font-size:18px; }h2 { margin:0 15px 0 75px;padding:2px 15px 15px 0;font-weight:normal;font-size:15px; }ul { margin:12px 15px 5px 93px;padding:0;list-style:square; }.filelink { width:175px;float:left; }.backlink { margin:15px 15px 0 75px;padding:15px 15px 2px 0;border-top:1px solid #C8C8C8; }.link { position:absolute;right:10px;bottom:-22px;}a.linktext { font-weight:normal;font-size:11px;color:#4B4B4B;text-decoration:none; }.logotop { position:absolute;left:11px;top:28px;}.logoimgtop { width:86px;height78px;border:none; }.logobottom { position:absolute;right:10px;bottom:8px;}.logoimgbottom { width:91px;height31px;border:none; }.donation { width:69px;height38px;border:none;position:absolute;left:21px;top:118px; }--></style></head><body><div class="pagebox"><div class="logotop">'+logotop+'</div><h1>Video Download, '+host+'</h1><h2>The following media has been found on the <span class="em">'+mediahost+'</span> website.</h2><ul><li>'+link+'</li></ul><p class="backlink">Return to <a href="'+backlink+'" title="(back to '+mediahost+')">'+mediahost+'</a> website</p><div class="link"><a class="linktext" href="'+home+'" '+hometitle+'>(script by 1024k.de, ported by IE7pro team)</a></div><div class="donation"><form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div><input type="hidden" name="cmd" value="_s-xclick" /><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHbwYJKoZIhvcNAQcEoIIHYDCCB1wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCekZyYz9kXtChhfaegGoEby/tmMHl6b9yhg5s5iNBbnDWO8jC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hhU0B3APlcVTcGC9VeR9aPYAjeiTpRMokw79BugM2xPMMhosp12eBDmzv3BrK4=-----END PKCS7-----" /><input type="image" src="' + logodonateimgsrc + '" name="submit" alt="" title="Thank you for your support!" /></div></form></div><div class="logobottom">'+logobottom+'</div></div></body></html>');
  97.          document.close(); 
  98.      } else {
  99.          document.getElementById('gmnotice-txt').childNodes[0].data='Sorry, no download link has been found on this page.';
  100.          document.getElementById('gmnotice-txt').style.color='#FFFA2F;';
  101.          document.getElementById('gmnotice').style.background='#FF7345;'
  102.      }
  103.  
  104.  }
  105.  
  106.  function extracturls() {
  107.  
  108.      if      (host.match(/google\./i)      !=null) {mediahost='Google'}
  109.      else if (host.match(/dailymotion\./i) !=null) {mediahost='Dailymotion'}
  110.      else if (host.match(/myvideo\.de/i)   !=null) {mediahost='MyVideo'}
  111.      else if (host.match(/sevenload\./i)   !=null) {mediahost='Sevenload'}
  112.      else if (host.match(/clipfish\.de/i)  !=null) {mediahost='Clipfish'}
  113.  
  114.      if (mediahost!=false)
  115.      {
  116.          embmedia=document.getElementsByTagName('embed');
  117.          for(i=0;i<embmedia.length;++i)
  118.          {
  119.              source=unescape(embmedia[i].getAttribute('src'));
  120.              switch (mediahost)
  121.              {
  122.                  case 'Google':
  123.                      source=in2html(source.substr(source.indexOf('videoUrl=')+9));
  124.                      filetype='(.flv)';
  125.                      break;
  126.                  case 'Dailymotion': 
  127.                      if (embmedia[i].getAttribute('flashvars')!=null) {
  128.                          source=unescape(embmedia[i].getAttribute('flashvars'));filetype='(.flv)';
  129.                          urlstart=source.indexOf('url=')+4;urlend=source.indexOf('&',urlstart);source=in2html(source.substring(urlstart,urlend));
  130.                      } else {
  131.                          source=null;
  132.                      }
  133.                      break;
  134.                  case 'MyVideo':
  135.                      if(embmedia[i].parentNode.id=='FLV') {
  136.                          source=in2html(source.substring(0,source.indexOf('.llnwd.net/')+14)+source.substring(source.indexOf('V=../movie')+5,source.indexOf('.flv')+4));filetype='(.flv)';
  137.                      } else {
  138.                          source=null;
  139.                      }
  140.                      break;
  141.                  case 'Sevenload':
  142.                      if(embmedia[i].getAttribute('flashvars').indexOf('id=')!=-1) {
  143.                          urlstart=embmedia[i].getAttribute('flashvars').indexOf('id=')+3;
  144.                          urlend=embmedia[i].getAttribute('flashvars').indexOf('&',urlstart);
  145.                          source='http://sevenload.de/api/player/id/'+unescape(embmedia[i].getAttribute('flashvars').substring(urlstart,urlend));
  146.  
  147.                          var xmlhttp=false;
  148.  
  149.                          try {
  150.                              xmlhttp=PRO_xmlhttpRequest();
  151.                          }
  152.                          catch(e) {
  153.                              xmlhttp=false;
  154.                          }
  155.  
  156.                          if(xmlhttp!=false)
  157.                          {
  158.                              xmlhttp.open("GET",source,false);
  159.                              xmlhttp.send(null);
  160.                              var xmlobject=xmlhttp.responseXML;
  161.                              source=in2html(xmlobject.getElementsByTagName('source')[0].getAttribute('url'));filetype='(.flv)';
  162.                          } else {
  163.                              source=null;
  164.                          }
  165.                      }
  166.                      else
  167.                      {
  168.                          source=null;
  169.                      }
  170.                      break;
  171.                  case 'Clipfish':
  172.                      if(source.indexOf('videoid=')!=-1) {
  173.                          urlstart=source.indexOf('videoid=')+8;
  174.                          if (source.indexOf('&',urlstart)!=-1)
  175.                          {
  176.                              urlend=source.indexOf('&',urlstart)
  177.                          } else {
  178.                              urlend=source.length;
  179.                          }
  180.                          source='http://www.clipfish.de/video_n.php?videoid='+unescape(source.substring(urlstart,urlend));
  181.  
  182.                          var xmlhttp=false;
  183.  
  184.                          try {xmlhttp=PRO_xmlhttpRequest();}
  185.                          catch(e) {xmlhttp=false;}
  186.  
  187.                          if(xmlhttp)
  188.                          {
  189.                              xmlhttp.open("GET",source,false);
  190.                              xmlhttp.send(null);
  191.                              var xmlobject=xmlhttp.responseText;
  192.                              source=in2html(xmlobject.substring(xmlobject.indexOf('&url=')+5,xmlobject.indexOf('.flv')+4));filetype='(.flv)';
  193.                          }
  194.                          else
  195.                          {
  196.                              source=null;
  197.                          }
  198.                      }
  199.                      else
  200.                      {
  201.                          source=null;
  202.                      }
  203.                      break;
  204.                  default:
  205.                      break;
  206.              }
  207.              if(source!=null)
  208.              {
  209.                  fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  210.                  insertnotice();
  211.                  break;
  212.              }
  213.          }
  214.      }
  215.  
  216.      if (host.match(/putfile\./i)!=null)
  217.      {
  218.          var text = PRO_documentText();
  219.          startpos = text.indexOf('videoFile: \'');
  220.          if(startpos == -1) {
  221.              startpos = text.indexOf('controller="true" src="');
  222.              if(startpos != -1){
  223.                  startpos += 23;
  224.                  endpos = text.indexOf('"', startpos);
  225.              }
  226.          } else {
  227.              startpos += 12;
  228.              endpos = text.indexOf('\'', startpos);
  229.          }
  230.          if(startpos != -1){
  231.              source = text.substring(startpos, endpos); 
  232.              fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  233.              insertnotice();
  234.          }
  235.      }
  236.      if (host.match(/google\./i)!=null)
  237.      {
  238.          if(document.getElementById('macdownloadlink')!=null)
  239.          {
  240.              source=in2html(document.getElementById('macdownloadlink').href);filetype='(.avi)';
  241.              fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  242.              insertnotice()
  243.          }
  244.          if(document.getElementById('ipoddownloadlink')!=null)
  245.          {
  246.              source=in2html(document.getElementById('ipoddownloadlink').href);filetype='(.mp4) (iPod)';
  247.              fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  248.              insertnotice()
  249.          }
  250.          if(document.getElementById('pspdownloadlink')!=null)
  251.          {
  252.              source=in2html(document.getElementById('pspdownloadlink').href);filetype='(.mp4) (PSP)';
  253.              fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  254.              insertnotice()
  255.          }
  256.      }
  257.  
  258.      if      (host.match(/youtube\./i)  !=null) {mediahost='YouTube'}
  259.      else if (host.match(/metacafe\./i) !=null) {mediahost='Metacafe'}
  260.      else if (host.match(/break\.com/i) !=null) {mediahost='Break.com'}
  261.  
  262.      if (mediahost!=false)
  263.      {
  264.          scriptmedia=document.getElementsByTagName('script');
  265.          for(i=0;i<scriptmedia.length;++i)
  266.          {
  267.              if(scriptmedia[i].text.indexOf('==UserScript==') != -1) continue;
  268.              switch (mediahost)
  269.              {
  270.                  case 'YouTube': 
  271.                      source=scriptmedia[i].text.match(/video_id=\S+&.+&t=.+&f/i);
  272.                      if (source!=null)
  273.                      {
  274.                          source=in2html(String(source).replace(/(video_id=\S+)&.+(&t=.+)&f/i,'http://www.youtube.com/get_video?$1$2'));filetype='(.flv)';
  275.                          fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  276.                          insertnotice();
  277.                      }
  278.                      break;
  279.                  case 'Break.com':
  280.                      if(scriptmedia[i].text.indexOf('sGlobalContentFilePath=\'')!=-1)
  281.                      {
  282.                          var s = scriptmedia[i].text;
  283.                          urlstart=s.indexOf('sGlobalContentFilePath=\'')+24;
  284.                          urlend=s.indexOf('\'',urlstart);
  285.                          var sGlobalContentFilePath = s.substring(urlstart,urlend);
  286.                          urlstart=s.indexOf('sGlobalFileName=\'')+17;
  287.                          urlend=s.indexOf('\'',urlstart);
  288.                          var sGlobalFileName = s.substring(urlstart,urlend);
  289.                          source = 'http://media1.break.com/dnet/media/'+sGlobalContentFilePath+'/'+sGlobalFileName+'.flv';
  290.                          fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  291.                          found=true;
  292.                          insertnotice();
  293.                      }
  294.                      break;
  295.                  case 'Metacafe':
  296.                      source=scriptmedia[i].text.match(/itemID=[0-9]+/i);
  297.                      if (source!=null)
  298.                      {
  299.                          source='http://www.metacafe.com/fplayer.php?itemID=' + String(source).match(/[0-9]+/i) + '&t=embedded';filetype='(.flv)';
  300.                          var xmlhttp=false;
  301.  
  302.                          try {xmlhttp=PRO_xmlhttpRequest();}
  303.                          catch(e) {xmlhttp=false; alert("Error");}
  304.                          if(xmlhttp)
  305.                          {
  306.                              xmlhttp.open("GET",source,true);
  307.                              xmlhttp.send(null);
  308.                              xmlhttp.onreadystatechange = function() {
  309.                                  if (xmlhttp.readyState == 4) {
  310.                                      xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  311.                                      xmlDoc.async="false";
  312.                                      var loaded = xmlDoc.loadXML(xmlhttp.responseText);
  313.  
  314.                                      source=in2html(xmlDoc.getElementsByTagName('playlist')[0].firstChild.getAttribute('url'));filetype='(.flv)';
  315.                                      fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  316.                                      found=true;
  317.                                      insertnotice();
  318.                                  }
  319.                              }
  320.                          }
  321.                      }
  322.                      break;
  323.                  default:
  324.                      break;
  325.              }
  326.          }
  327.  
  328.          if (mediahost=='Metacafe' && found!=true)
  329.          {
  330.              embmedia=document.getElementsByTagName('embed');
  331.              for(i=0;i<embmedia.length;++i)
  332.              {
  333.                  source=unescape(embmedia[i].getAttribute('src'));
  334.                  source=in2html(source.substring(73,source.indexOf('&')));
  335.                  fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  336.                  insertnotice();
  337.              }
  338.          }
  339.  
  340.      }
  341.  
  342.      if (host.match(/myspace\./i)!=null)
  343.      {
  344.          mediahost='MySpace';
  345.          if (loc.match(/videoid=/i)!=null)
  346.          {
  347.              vid=loc.match(/videoID=[0-9]+/i)[0].substr(8);source=in2html('http://content.movies.myspace.com/'+Math.pow(10,7-(vid.length-5)).toString().substr(1)+vid.substr(0,vid.length-5)+'/'+rev(vid.substring(vid.length-2))+'/'+rev(vid.substring(vid.length-4,vid.length-2))+'/'+vid+'.flv');filetype='(.flv)';
  348.              fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
  349.              insertnotice();
  350.          }
  351.      }
  352.  
  353.  }
  354.  
  355.  if ((host.match(/google\./i) !=null) || (host.match(/dailymotion\./i)!=null)) { window.onload = extracturls(); }
  356.  else { extracturls() }
  357.  
  358. })();
  359.